<%@ page language="java" pageEncoding="UTF-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>test2.jsp</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link rel="stylesheet" type="text/css" href="css/linkage.css" />
	<link type="text/css" rel="stylesheet" href="css/layout.css" />	
	<link href="http://www.creativespaces.net.au/css/default/common_version1341383357.css" media="screen" rel="stylesheet" type="text/css" />
	<style type="text/css">
		.mainMenu {
		    overflow: hidden;
		    
		}
		
		.mainMenu ul {
		    margin: 87px 0 0 0;
		   
		}
		
		.mainMenu li {
		    float: left;
		}
		
		.mainMenu li a {
		    display:block;
			text-indent: -700em;
			overflow: hidden;
			height: 20px;
			background: transparent url(../../img/main-menu-bg.gif) no-repeat 0 0;
		}
	</style>	
	<script type="text/javascript" src="js/jquery-1.9.1.js"></script>
	<script type="text/javascript" src="js/linkage.js"></script>
	<script type="text/javascript" src="js/district-all.js"></script>
	
	<script type="text/javascript">
		$(function(){
			//$("a").addClass("myStyle");
			var setValue="12,965,966";
			$("#area").linkage({
				data:districtData,
				return_dom:"linkage",
				set:setValue
			});			
		});
		function showValue (){
			var area = $("input[class='linkage']").val();
			alert(area);
			//var obj = area.parseJSON();
			//alert(obj.toJSONString() + area.i0.name);
			alert(area.i0.name);
			alert(area.i1.name);
			alert(area.i2.name);
		}
	</script>
  </head>
  
  <body>
    <div id="area"></div>
    <input type="button" value="查 看" onclick="showValue()">
    <div class="mainMenu">

            
        <ul class="mainNavigation">
                                <li><a href="http://www.creativespaces.net.au/find-a-space/" class="" id="main-menu-find-a-space">Find a Space</a></li>
                        
                                                <li><a href="http://www.creativespaces.net.au/list-a-space" class="" id="main-menu-list-a-space">List a Space</a></li>
                        
                                    <li><a href="http://www.creativespaces.net.au/case-studies" class="" id="main-menu-case-studies">Case Studies</a></li>
                        
                                    <li><a href="http://www.creativespaces.net.au/resources/" class="" id="main-menu-resources">Resources</a></li>
                        
                                    <li><a href="http://www.creativespaces.net.au/waiting-list" class="" id="main-menu-waiting-list">Waiting List</a></li>
                        
                        
            <li>
                                <a href="http://www.creativespaces.net.au/login/" class="last" id="main-menu-login">Login</a>
                            </li>
        </ul>

    
    <div class="clr"><!-- --></div>

</div>
  </body>
</html>
